import MessageQueue from '../plugins/MessageQueue';

var loginService = {};
// 登录
loginService.login = function(call,username,password,cid,type){
	var params={
		username:username,
		password:password,
		cid:cid,
		type:type
	};
	MessageQueue('login?',params,function(msg){
		call(msg)
	},'POST')
}

module.exports = loginService;